package com.lichuang.fruitvarietysm.goods.service.impl;

import com.lichuang.fruitvarietysm.goods.entity.Category;
import com.lichuang.fruitvarietysm.goods.mapper.CategoryMapper;
import com.lichuang.fruitvarietysm.goods.service.ICategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * <p>
 * 分类表 服务实现类
 * </p>
 *
 * @author shuaihang
 * @since 2019-05-15
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getCategory(Integer parent_id) {

        return categoryMapper.getCategory(parent_id);
    }

    @Override
    public List<Category> getCategoryName(Integer parent_id) {
        return categoryMapper.getCategoryName(parent_id);
    }
}
